package router

import (
	"github.com/gin-gonic/gin"
	"userop_bff/api"
	"userop_bff/middlerware"
)

func InitUserFavRouter(r *gin.Engine) {
	UserFavRouter := r.Group("userfav").Use(middlerware.CheckToken())
	{
		//用户收藏列表
		UserFavRouter.GET("", api.GetFavList)
		//添加用户收藏
		UserFavRouter.POST("", api.AddUserFav)
		//删除用户收藏
		UserFavRouter.DELETE("", api.DeleteUserFav)
		//获取用户收藏详情
		UserFavRouter.GET("detail", api.GetUserFavDetail)
	}
}
